package common.project.epic.db;

public class EpicMsgIdPriority implements Comparable {
	public String msg_id;
	public double priority;
	
	public EpicMsgIdPriority(String msg_id, double priority) {
		this.msg_id = msg_id;
		this.priority = priority;
	}
	
	public EpicMsgIdPriority() {
		this(null, 0);
	}

	@Override
	public int compareTo(Object _emp) {		
		EpicMsgIdPriority emp = (EpicMsgIdPriority) _emp;
		if(this.priority > emp.priority) {
			return 1;
		}
		else if(this.priority == emp.priority) {
			return 0;
		}
		else {
			return -1;
		}
	}
}
